export const pageSizes = [10, 50, 100, 200]

export const handleResize = () => {
  let pageSize = 10
  if (window.innerWidth >= 2560) {
    pageSize = 30
  } else if (window.innerWidth >= 1920 && window.innerWidth < 2560) {
    pageSize = 20
  } else if (window.innerWidth >= 1600 && window.innerWidth < 1920) {
    pageSize = 18
  } else if (window.innerWidth >= 1280 && window.innerWidth < 1600) {
    pageSize = 15
  } else if (window.innerWidth >= 1024 && window.innerWidth < 1280) {
    pageSize = 10
  } else if (window.innerWidth >= 768 && window.innerWidth < 1024) {
  }
  let pageSizes = []
  for (let i = 1; i <= 5; i++) {
    pageSizes.push(i * pageSize)
  }
  let data = { pageSizes: pageSizes, pageSize: pageSize }
  return data
}
